package com.qc31.baselib.base

import android.view.View
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.qc31.baselib.databinding.ActivityToolbarRecyclerTopBinding
import com.qc31.baselib.databinding.IncludeRecyclerMathBinding

abstract class BaseToolbarRecycleActivity :
    BaseBarActivity<ActivityToolbarRecyclerTopBinding>(ActivityToolbarRecyclerTopBinding::inflate) {

    protected lateinit var mRecycler: RecyclerView
    protected lateinit var mLayoutManger: LinearLayoutManager

    override fun initView() {
        mRecycler = IncludeRecyclerMathBinding.bind(binding.root).recyclerView
        mLayoutManger = LinearLayoutManager(this)
        mRecycler.layoutManager = mLayoutManger
        initRecyclerView()
    }

    abstract fun initRecyclerView()

    abstract fun initHeadView(): View?
}